/*导入组件*/
/*1.导入 vue-router 包*/
import VueRouter from 'vue-router';
import HomeContainer from './commponents/tabbar/HomeContainer.vue';
import MemberContainer from './commponents/tabbar/MemberContainer.vue';
import SearchContainer from './commponents/tabbar/SearchContainer.vue';
import ShopcarContainer from './commponents/tabbar/ShopcarContainer.vue';
import NewsList from './commponents/News/newsList.vue';
import newsInfo from './commponents/News/newsInfo.vue';
var router = new VueRouter({
    routes: [
        {path: '/', redirect: '/home'},
        {path: '/home', component: HomeContainer},
        {path: '/member', component: MemberContainer},
        {path: '/shop_car', component: ShopcarContainer},
        {path: '/search', component: SearchContainer},
        {path: '/home/newsList', component: NewsList},
        {path: '/home/newsInfo:id', component: newsInfo}
    ],
    linkActiveClass: 'mui-active'
});
/*把路由对象暴露出去*/
export default router;